package com.zhongzhi.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.zhongzhi.springboot.pojo.Measure;
import com.zhongzhi.springboot.pojo.MeasureShow;
import com.zhongzhi.util.JsonResult;

@Mapper
public interface MeasureDao{

	//根据工位号查询通道测量条数
	int selectByStationId(Integer id);
	//根据机型查询有无数据
	int selectTypeId(Integer id);
	//插入数据
	int insert(Measure measure);
	//修改//这里只允许修改机型机号负重备注,其他测试结果不允许修改
	int update(Measure measure);
	//根据id删除数据
	int delete(Integer id);
	//根据id批量删除
	int deletes(Integer[] ids);
	//分页查询全部数据
	List<MeasureShow> select(Integer pages,Integer line,Long startTime,Long endTime,Integer StationId,String str);
	//获取测试数据量
	int selectSize(Long startTime,Long endTime,Integer StationId,String str);
	//根据id查询数据
	MeasureShow selectById(Integer id);
	
	//根据机号查询数据
	List<MeasureShow> selectByNum(Integer typeId,String deviceNum);
	ArrayList<Measure> webselect();
	int deleteNum(String type, String num);
	int deleteNum(String num, int[] a);
	
}
